<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title> jQuery event </title>
<script src="jquery-1.7.2.min.js"></script>


<style>
  div{
  	width:100px;
  	height:100px;
	background-color:#FC9;
  }
</style>

</head>

<body>

<div>클릭</div>
<script>

   function sum(){
	
	  alert("hello"); 
    
   }
  

   $('div').click(sum);
  
	
   
</script>
</body>
</html>
